import Vue from 'vue'
import VueRouter from 'vue-router'
import Zhuye from '../views/zhuye.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/zhuye',
    name: 'Zhuye',
    component: () => import('../views/zhuye.vue')
  },
  {
    path: '/fenlei',
    name: 'Fenlei',
    component: () => import('../views/fenlei.vue')
  },
  {
    path: '/faxian',
    name: 'Faxian',
    component: () => import('../views/faxian.vue')
  },
  {
    path: '/gouwuche',
    name: 'Gouwuche',
    component: () => import('../views/gouwuche.vue')
  },
  {
    path: '/wode',
    name: 'Wede',
    component: () => import('../views/wode.vue')
  },
  {
    path: '/liebiao',
    name: 'Liebiao',
    component: () => import('../views/liebiao.vue')
  },
  {
    path: '/xiangqing',
    name: 'Xiangqing',
    component: () => import('../views/xiangqing.vue')
  },
  {
    path: '/zhuce',
    name: 'Zhuce',
    component: () => import('../views/zhuce.vue')
  },
  {
    path: '/denglu',
    name: 'Denglu',
    component: () => import('../views/denglu.vue')
  },
  {
    path: '/search',
    name: 'Denglu',
    component: () => import('../views/search.vue')
  },
  {
    path: '/',
    name: 'Zhuye',
    component:Zhuye
  },
]

const router = new VueRouter({
  base: process.env.BASE_URL,
  routes
})

export default router
